package org.xhnews.notifications;

import net.rim.device.api.notification.NotificationsConstants;
import net.rim.device.api.notification.NotificationsManager;

public class EventManager {
	public final static long NOTIFICATIONS_DBUPDATE = 0x41d2f10459904276L;

	public static void registerNotificationObjects() {
		NotificationsManager.registerSource(NOTIFICATIONS_DBUPDATE,
				new Object() {
					public String toString() {
						return "xhnews";
					}
				}, NotificationsConstants.IMPORTANT);
	}

	private static int i = 0;

	public static void fireEvent() {
		Event e = new Event(NOTIFICATIONS_DBUPDATE, i++, 500, -1,
				NotificationsConstants.MANUAL_TRIGGER);
		e.fire();
	}
}
